import requests
from lxml import etree


def get_news_lxml():
    url = 'http://www.cqie.edu.cn/'
    response = requests.get(url, headers=headers)
    response.encoding = 'utf-8'
    tree = etree.HTML(response.text)

    news_list = []
    # 根据实际DOM结构调整XPath:ml-citation{ref="1,4" data="citationList"}
    for element in tree.xpath('//div[@id="wp_news_w6"]/ul/li'):
        title = element.xpath('.//a/text()')[0].strip()
        link = element.xpath('.//a/@href')[0]
        if link.startswith('/'):
            link = f'http://www.cqie.edu.cn{link}'
        news_list.append({'标题': title, '地址': link})
    return news_list


print(get_news_lxml())